from django.db import models
from apps.core.models.element import Element
from apps.core.models.section import Section
import datetime

class Stat(models.Model):
    url = models.CharField(max_length=255)
    related_element = models.ForeignKey(Element, unique=True)
    
    def __unicode__(self):
        return self.related_element.title

    class Meta:
        app_label = 'stat'
